

#ifndef _PannelWidget_H_
#define _PannelWidget_H_

#include "RibbonApi.hpp"
#include <QHBoxLayout>
#include <QWidget>
#include <QLabel>
#include <QFrame>
#include <QToolBar>
#include <QToolButton>
#include <QMenuBar>
#include <QDebug>
#include <QCursor>


namespace NSRibbon {

	class RibbonAcMenu;

	class PannelWidget : public QWidget {
		Q_OBJECT
	public:
		PannelWidget(QWidget* p = nullptr);
		~PannelWidget();

	public:
		void setPannelName(QString name);
		/*size: 0-small, 1-medium, 2-large*/
		void addWidget(QWidget* _w, int _type = 0, QString name = QString());
		void addAction(QAction* _a, int _type = 0);
	private:
		RibbonAcMenu* m_pop;
		QGridLayout* m_layout;
		QToolButton* m_more;
		QLabel* m_pannel_label;
		int v_sep{ 0 };
		int h_sep{ 0 };

	};


}

#endif

